<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>edit.jsp</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<LINK href="../styles/sciencee.css"  type=text/css rel=stylesheet>
	<script language=javascript>
		var IframeID=document.getElementById("cws_Composition").contentWindow;
		function confirm1(){
			if("<%=request.getParameter("op") %>"=="des"){
				var hid=document.getElementById("des");
				hid.value=IframeID.document.body.innerHTML;
			}
			if("<%=request.getParameter("op") %>"=="dialog"){
				var hid=document.getElementById("dialog");
				hid.value=IframeID.document.body.innerHTML;
			}
			if("<%=request.getParameter("op") %>"=="note"){
				var hid=document.getElementById("note");
				hid.value=IframeID.document.body.innerHTML;
			}
			var fm=document.getElementById("form1");
			fm.submit();
		}
		function wr(){
			var cont=opener.document.getElementById("<%=request.getParameter("op") %>").innerHTML;
			if(cont!=null || cont!="" || typeof cont!="undefined"){
				IframeID.document.body.innerHTML+=cont;
			}
		}
		
	</script>
  </head>
  
  <body onLoad="wr();">
   <table border="0"  cellspacing="0" cellpadding="0">
   	<tr>
   		<td><div><%@ include file="../message/editor.jsp"%></div></td>
   	</tr>
   </table>
   <form id="form1" action="<%=path %>/detail/modShot.do" method="POST">
   	<input type="hidden" name="desContent" id="des">
   	<input type="hidden" name="dialogContent" id="dialog">
   	<input type="hidden" name="noteContent" id="note">
   	<input type="hidden" name="shotId" value="<%=request.getParameter("shotId") %>">
   	<input type="button" value="<bean:message key='confirm'/>" onClick="confirm1();">
   	<input type="button" value="<bean:message key='close'/>" onClick="window.close();">
   </form>
  </body>
</html>
